package com.ddwl.shop;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
import org.springframework.scheduling.annotation.EnableAsync;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author Fu Zhaohui
 * @version 1.0.0.RELEASE
 * @date 2020/3/5 10:45 上午
 */
@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan("com.ddwl")
@MapperScan(basePackages = {"com.ddwl.shop.mapper", "com.ddwl.shop.dao.mapper"})
@EnableFeignClients(basePackages = {"com.ddwl.common.feign.api", "com.ddwl.common.feign.thirdparty", "com.ddwl.common.feign.wx"})
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@EnableAsync
@EnableMongoRepositories("com.ddwl.shop.repository")
public class ShopApplication {
    public static void main(String[] args) {
        SpringApplication.run(ShopApplication.class, args);
    }
}
